package com.boot.modules.captcha.controller;

import com.boot.common.anno.AnnoLog;
import com.boot.modules.captcha.service.CaptchaService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/captcha")
public class CaptchaController {

    @Autowired
    CaptchaService captchaService;

    @AnnoLog(value = "登录验证码")
    @GetMapping("/jpg")
    public void captchaJpg(HttpServletResponse response, String uuid){
        captchaService.createCaptcha(response, uuid);
    }

}
